<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>vue</title>
    <script src='https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js'></script>
</head>

<body>
    <div id='app'>
        <star>
            <li>陈奕迅---</li>
            <li>李小龙---</li>
        </star>
    </div>
</body>
<script>
    Vue.component('star', {
        template: `
        <ul>
                <li>孙红雷</li>    
                <li>黄渤</li>    
                <slot></slot>
                <li>李宗盛</li>    
                <slot></slot>
            </ul>
        `,
    })
    let vm = new Vue({
        el: '#app',
        data: {

        },
        methods: {

        }
    });

    /*
        插槽--slot(占位符)：
            类似手机预留手机卡位置，移动、联通、电信均可
            扩展组件的能力，提高组件的复用度。
    */
</script>

</html>